home *** CD-ROM | disk | FTP | other *** search
- Path: wmwap1.math.uni-wuppertal.de!usenet
- From: Oliver Heinz <heinz@lfa.uni-wuppertal.de>
- Newsgroups: comp.lang.c++
- Subject: Operator overloading
- Date: Thu, 07 Mar 1996 18:15:33 +0100
- Organization: University of Wuppertal, Germany
- Message-ID: <313F19B5.41C6@lfa.uni-wuppertal.de>
- NNTP-Posting-Host: welfag.elektro.uni-wuppertal.de
- Mime-Version: 1.0
- Content-Type: multipart/mixed; boundary="------------167E2781446B"
- X-Mailer: Mozilla 2.0 (X11; I; IRIX 5.3 IP20)
- CC: heinz@lfa.uni-wuppertal.de
-
- This is a multi-part message in MIME format.
-
- --------------167E2781446B
- Content-Type: text/plain; charset=iso-8859-2
- Content-Transfer-Encoding: 7bit
-
- Hello out there,
-
- can somebody explain to me this strange looking operator overloading:
-
- const T& operator[](unsigned long int index) const;
-
- I know, it is an subscription overloading, for something like
- v[i], where i is of type unsigned long int and v of type T.
-
- What's the meaning of the const at the end
- and the beginning of the line ?
-
- Any help is greatly appreciated, thanks in advance ...
-
- Oliver
-
- --------------167E2781446B
- Content-Type: text/plain; charset=iso-8859-2
- Content-Transfer-Encoding: 7bit
- Content-Disposition: inline; filename="absender"
-
- ============================================================================
- Oliver Heinz | E-mail:
- University of Wuppertal | heinz@lfa.uni-wuppertal.de
- Department of Electrical Engineering |
- Fuhlrottstr. 10 |
- D-42110 Wuppertal, GERMANY |
- ============================================================================
-
- --------------167E2781446B--
-
-